const Router = require('koa-router');

const GoodsRouter = new Router();

const {inser,user_buy_goods, user_search_goods} = require('../controller/goods.controller');
const { verifyAuth} = require('../middleware/auth.middleware');

GoodsRouter.post('/inser_goods',inser)
GoodsRouter.post('/user_buy_goods',verifyAuth,user_buy_goods)
GoodsRouter.post('/user_search_goods',verifyAuth,user_search_goods)

module.exports = GoodsRouter;